package com.yt.lxh.dto.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;

@Data
@ApiModel(description = "分页 + 条件查询")
public class BasePageDTO {

    @ApiModelProperty(value = "每页条数，默认 10")
    private Integer pageSize = 10;

    @ApiModelProperty(value = "页码，默认 1", required = true)
    @Min(value = 0, message = "无效页码")
    private Integer pageNum = 1;

    @ApiModelProperty(value = "条件查询字段")
    private String queryField;
}
